unicsv: Fix memory override with sscanf.
authoroliskoli <oliskoli>
Mon, 1 Sep 2008 21:06:07 +0000 (21:06 +0000)
committeroliskoli <oliskoli>
Mon, 1 Sep 2008 21:06:07 +0000 (21:06 +0000)
unicsv.c

index 3b4909158babd7cc1420179e0c24eaf217e751a2..3ffb00cd250a3a58d304f219d3ca3f35ca89ac76 100644 (file)
--- a/unicsv.c
+++ b/unicsv.c
@@ -323,7 +323,7 @@ unicsv_parse_time(const char *str, int *msec, int *date)
        int hour, min, ct, sec;
        int consumed = 0;
        double ms;
-       char sep[1];
+       char sep[2];
        int ldate;
 
        /* If we have somethine we're pretty sure is a date, parse that